package com.tongcao.cn.service;

import com.tongcao.cn.base.req.IRequest;
import com.tongcao.cn.dfire.result.Result;

/**
 * @Author:tongcao
 * @Date:2019/1/24 15:46
 * Description:
 */
public interface IBookerClient {


    /**
     * @param request
     * @param <T>
     * @return
     */
    <T> Result<T> execute(IRequest<T> request);


    /**
     * @param request
     * @param <REQ>
     * @param <RSP>
     * @return
     */
    <REQ, RSP> RSP bizExecute(REQ request);

}
